﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Algorithm.Hard_42_Trap
{
    class MainProject
    {
        static void Main(string[] args)
        {
            Console.WriteLine(Trap(new int[] { 0, 1, 0, 2, 1, 0, 1, 3, 2, 1, 2, 1 }));
            Console.ReadKey();
        }
        public static int Trap(int[] height)
        {
            ////双指针+计算接的雨水
            //int firstIndex = 0;
            //int secondIndex = 0;

            //int res = 0;
            //int sum = 0;

            //while (true)
            //{
            //    secondIndex++;
            //    sum += CalculateRainwater(height, firstIndex, secondIndex);
            //}
            return 0;
        }

        private static void CalculateRainwater(int[] height, int firstIndex, int secondIndex)
        {

        }
    }
}
